# -*- coding: utf-8 -*-
"""
Created on Fri Sep 17 20:59:57 2021

@author: Think
"""


n=input('numbers:')
n=n.split(',')
#输入数字列表
for i in range(len(n)):
    n[i]=int(n[i])
for i in range(len(n)):
    m=max(n)
    n.remove(m)
    print(m,end=' ')